package gen.kaynak.navitrack.charProcessingCoR;

import gen.kaynak.navitrack.MessageProcessManager;

public class PunctuationHandler implements ICharHandler {
	private ICharHandler successor;

	public PunctuationHandler() {
		successor = new NumberHandler();
	}

	@Override
	public void HandleRequest(char c, MessageProcessManager mpm) {
		if (Character.isLetterOrDigit(c)) {
			mpm.getStateContextManager().processPunctuation(c);
		} else {
			successor.HandleRequest(c, mpm);

		}

	}

}
